package com.wl.configclient2.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangl
 * @desc
 * @date:2017/6/2111:41
 * @Copyright (c) 2017, DaChen All Rights Reserved.
 */
@RestController
@RefreshScope
public class ClientController {

    @Value("${abc:default2}")
    String abc;

    @RequestMapping("abc")
    public String test(){
        return abc;
    }
}
